// index.js
const api = require('../../api/index');
Page({
  data:{
    jxwLeft:280,
    venueData:[],
    myTitle:""
  },
  jumpTo(){
    wx.navigateTo({
      url: '/secondary_page/venue_details/venue_details',
    })
  },
  onReady(){
    //页面的调用效果
    api.getMsg().then(data => 
        //this.setData({ exampleData: data })
        console.log(data)
    );

  },
  onShow() {
    wx.request({
        url: 'http://192.168.0.14/config/getValue?myKey=index_title',
        success:(data) => {
            console.log(data.data.data[0]);
            this.setData({
                myTitle:data.data.data[0].my_value
            })
        }
    })
  }
})
